package br.ufpe.cin.imlm2.util.filter;

import java.util.ArrayList;
import java.util.Collection;

public abstract class SimpleFilter<T> implements IFilter<T> {

	@Override
	public Collection<T> filter(Collection<T> collection) {
		Collection<T> filtered = new ArrayList<T>();
		for (T t : collection) {
			if(!this.retains(t))
				filtered.add(t);
		}
		return filtered;
	}

}
